<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        .container {
            width: 100%;
            max-width: 1920px;
            height: 500px;
            background-color: pink;
        }

        .banner {
            width: 100%;
            max-width: 1200px;
            height: 100%;
            margin: 0 auto;
            background-color: plum;
        }
    </style>
</head>

<body>

    <div class="container">
        <div class="banner"></div>
    </div>
</body>

</html>